
"""
从魔搭平台下载模型权重
"""
def download_model(model_name):
    from modelscope.hub.snapshot_download import snapshot_download
    snapshot_download(model_name, cache_dir="D:/models/")


if __name__ == '__main__':
    download_model("AI-ModelScope/DocLayout-YOLO-DocStructBench-onnx")
    pass
